<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			setAppNavigationBarTitle(){
			  if (this.globalData.appInfo != null) {
			    wx.setNavigationBarTitle({
			      title: this.globalData.appInfo.appNavigationBarTitleText
			    })
			  }
			}
		},
		globalData: {
		  appInfo:null,
		  userInfo: null,
		  // httpsUrl: 'http://192.168.2.16:10443/',
		  httpsUrl: 'https://jnby.pinshizhineng.com:8084/',  // 江南布衣
			equipmentUrl: 'pages',  // 品实
		  theme: 'orange',
		  themeBackgroundColor: '#EF831D',
		  loginCode: null,
		  pageSize: 1000,
		  mpOpenid: '',
		  agentUser: null,
		  menus: null,
		  activeCode: null,
		  member: null,
		  header: {},
		  products: [],
		  detail: {},
		  mGroup: 0,
		  isRunOnShow:false,//用于返回上一页做刷新
		}
	}
</script>

<style lang="scss" >
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	view{
		box-sizing:border-box;
	}
	// 无数据时显示的图片
	.no-data-img{
		width: 564rpx;
		margin: 0rpx auto;
		margin-top: 120rpx;
	}
	.ellipsis-1{ //超出部分省略号
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		white-space: normal;
		 text-overflow:ellipsis;  //省略号样式
	}
	
	.blank{ //空格
		height: 20rpx;
		background-color: #F9F9F9;
	}
	
	.news-icon { /* 公告图片 */
	  background-image: url("@/static/index/top_icon_notice.png");
	  background-size: cover;
	}
	/* 公告滚动动画效果 */
	@keyframes kf-marque-animation {
		0% {
			transform: translateX(0)
		}
	
		100% {
			transform: translateX(-33.3%)
		}
	}
	//空心按钮
	.btn {
		width: 300rpx;
		padding: 20rpx 0rpx;
		text-align: center;
		border-radius: 12rpx;
		border: 2rpx solid $globalColor;
		color: $globalColor;
	}
	//实心按钮
	.btn-activate {
		width: 300rpx;
		padding: 20rpx 0rpx;
		text-align: center;
		color: #fff;
		background: $globalColor;
		border-radius: 12rpx;
	}
	
	//表单通用实心按钮
	.mdx-btn{
		width: 694rpx;
		height: 92rpx;
		background: $globalColor;
		border-radius: 16rpx;
		line-height: 92rpx;
		text-align: center;
		font-size: 36rpx;
		color: #fff;
		margin: 0 auto;
	}
	
	.zy-row{
		display: flex;
		flex-direction: row;
	}
	
	.zy-col{
		display: flex;
		flex-direction: column;
	}
	
	//公告样式
	.notice-container {
		position: relative;
		width: 100%;
		z-index: 10;
		font-size: 30rpx;
		overflow: auto;
		border-radius: 10rpx;
		padding: 18rpx 0 18rpx 50rpx;
		box-sizing: border-box;
		background: #f2f8f9;
		display: flex;
		align-items: center;
		
		.notice {
			position: absolute;
			z-index: 11;
			width: 538rpx;
			font-size: 26rpx;
			color: #888888;
			overflow: hidden;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			.marquee-content {
				display: inline-block;
				width: 100%;
				height: 100%;
				line-height: 76rpx;
				padding-right: 0px;
				animation: kf-marque-animation 7.3s linear infinite;
				white-space: nowrap;
				text{
					font-size: 22rpx;
					color: $globalColor;
				}
			}
		}
		
	}
</style>
